package com.example.learningnote.params;

import java.util.HashMap;
import java.util.Map;

public class LoginParams {
    private final String username;
    private final String password;

    public LoginParams(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public Map<String,String> toMap(){
        Map<String, String> map = new HashMap<>();
        map.put("username" , String.valueOf(username));
        map.put("password",String.valueOf(password));
        return map;
    }
}
